package com.yj.service;

import java.time.DayOfWeek;

public class PriceCal {

    public int GetDiscountedPrice(int price, IDateTimeProvider dateTimeProvider)
    {
        if(dateTimeProvider.DayOfWeek() == DayOfWeek.TUESDAY)
        {
            return price/2;
        }
        else
        {
            return price;
        }
    }

}
